get_filename_component(SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)

#将该目录下的所有源文件添加到cmake
aux_source_directory(${SRC_DIR} SRC_LIST)

add_library(rpc_lib ${SRC_LIST} ${SRC_common})
set_target_properties(rpc_lib PROPERTIES
        ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)


message(STATUS "rpc_lib output directory: ${PROJECT_SOURCE_DIR}/lib")



target_link_libraries(rpc_lib boost_serialization)
set(src_rpc ${SRC_LIST} CACHE INTERNAL "Description of the variable")

